﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cn.Cellula.Biz {
    public sealed class CodeTypeDef {

        /// <summary>
        /// 系统模块
        /// </summary>
        public class Module {
            public const String Key = "module";
            /// <summary>
            /// 上传文件
            /// </summary>
            public const String UploadFile = "module_upload";
            /// <summary>
            /// 产品
            /// </summary>
            public const String Product = "module_product";
            /// <summary>
            /// 新闻列表
            /// </summary>
            public const String Newslist = "module_newslist";
            /// <summary>
            /// 用户的头像
            /// </summary>
            public const String UserFace = "module_user_face";
            /// <summary>
            /// 分类
            /// </summary>
            public const String Category = "module_category";
            /// <summary>
            /// 对象
            /// </summary>
            public const String Item = "module_item";
            /// <summary>
            /// 部门
            /// </summary>
            public const String Dept = "module_dept";
        }
        
        /// <summary>
        /// 材质
        /// </summary>
        public class Material {
            public const String Key = "material";
        }
        /// <summary>
        /// 新闻列表
        /// </summary>
        public class NewsList {
            public const String Key = "newslist";
            public const String NewslistLinks = "newslist_links";
        }

        /// <summary>
        /// 新闻分类
        /// </summary>
        public class NewsCategory {
            public const String Key = "nl_news";
        }
        /// <summary>
        /// 留言
        /// </summary>
        public class Guestbook {
            public const String Key = "guestbook";
        }
        /// <summary>
        /// 动作类型
        /// </summary>
        public class Action {
            public const String Key = "action";
            public const String Update = "action_update";
            public const String Select = "action_select";
        }
        /// <summary>
        /// 文件类型
        /// </summary>
        public class DocFile {
            public const String Key = "docfile";
        }
        /// <summary>
        /// 日志类型
        /// </summary>
        public class SysLog {
            public const String Key = "sys_log";
        }
        /// <summary>
        /// 认证类型
        /// </summary>
        public class UserCert {
            public const String Key = "user_cert";
        }
        /// <summary>
        /// 产品计价单位
        /// </summary>
        public class ProductUnit {
            public const String Key = "product_unit";
        }
        /// <summary>
        /// 分类类型
        /// </summary>
        public class Category {
            public const String Key = "category";
            /// <summary>
            /// 产品分类
            /// </summary>
            public const String Product = "category_product";
            /// <summary>
            /// 商铺/卖场
            /// </summary>
            public const String Market = "category_market";
            /// <summary>
            /// 新闻
            /// </summary>
            public const String News = "category_news";
            /// <summary>
            /// 独立列表
            /// </summary>
            public const String List = "category_list";
            /// <summary>
            /// 对象
            /// </summary>
            public const String Staff = "category_staff";
        }
        /// <summary>
        /// 表单项类型
        /// </summary>
        public class FormField {
            public const String Key = "formfield";
            /// <summary>
            /// 多选
            /// </summary>
            public const String CheckBox = "formfield_checkbox";
            /// <summary>
            /// 日期
            /// </summary>
            public const String Date = "formfield_date";
            /// <summary>
            /// 日期时间
            /// </summary>
            public const String DateTime = "formfield_datetime";
            /// <summary>
            /// 日期，年-月
            /// </summary>
            public const String YearMonth = "formfield_yearmonth";
            /// <summary>
            /// 自然年
            /// </summary>
            public const String Year = "formfield_year";
            /// <summary>
            /// 自然月
            /// </summary>
            public const String Month = "formfield_month";
            /// <summary>
            /// 下拉列表
            /// </summary>
            public const String DropDownList = "formfield_ddl";
            /// <summary>
            /// 多行文本
            /// </summary>
            public const String MultiText = "formfield_mtext";
            /// <summary>
            /// 单选
            /// </summary>
            public const String Radio = "formfield_radio";
            /// <summary>
            /// 单行文本
            /// </summary>
            public const String TextBox = "formfield_text";
            /// <summary>
            /// 外联分类下的Item
            /// </summary>
            public const String Item = "formfield_item";
            /// <summary>
            /// 是否
            /// </summary>
            public const String Boolean = "formfield_boolean";
            /// <summary>
            /// 系统用户
            /// </summary>
            public const String User = "formfield_user";
            /// <summary>
            /// 系统部门
            /// </summary>
            public const String Dept = "formfield_dept";

        }

        public class CountRule {
            public const String Key = "countrule";
            public const String Count = "countrule_count";
            public const String Sum = "countrule_sum";
            public const String Avg = "countrule_avg";
        }

        /// <summary>
        /// 数据库类型
        /// </summary>
        public class DbType {
            public const String Key = "db";
            public const String MySql5 = "mysql5";
            public const String Oracle10g = "oracle10g";
        }
        /// <summary>
        /// 待办事项类型
        /// </summary>
        public class Todotype {
            public const String Key = "todotype";
            public const String Daily = "todo_daily";
            public const String Other = "todo_other";
        }
        /// <summary>
        /// 待办事项等级
        /// </summary>
        public class Todolevel {
            public const String Key = "todolevel";
            public const String Normal = "todolevel_normal";
            public const String Important = "todolevel_important";
        }
    }
}
